package com.example.sdgk.controller;


import com.example.sdgk.entity.Application1;
import com.example.sdgk.service.Application1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class Application1Controller {

    @Autowired
    Application1Service application1Service;

    @RequestMapping(value = "/application",method = {RequestMethod.GET})
    public List<Application1> selectList(){
        return application1Service.selectList();
    }
}
